package com.it.data_linkedList.single;

/**
 * @Author: Coke
 * @DateTime: 2023/05/14/11:33
 * @注释: 单项链表的节点类
 **/
public class SingleNode {
    public int value;
    public SingleNode next;
    
    public SingleNode (int value, SingleNode next) {
        this.value = value;
        this.next = next;
    }
    
    public SingleNode () {
    }
    
    @Override
    public String toString () {
        return "SingleNode{" +
              "value=" + value +
              ", next=" + next +
              '}';
    }
}
